package com.orion.config.token;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * accessEx: 30 * 60
 refreshEx: 7 * 24 * 60 * 60
 accessSalt: orochi
 refreshSalt: mitch
 * @author Administrator
 * @date 2021/11/11
 */
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {

    private Integer accessEx;
    private Integer refreshEx;
    private String accessSalt;
    private String refreshSalt;

    public Integer getAccessEx() {
        return accessEx;
    }

    public void setAccessEx(Integer accessEx) {
        this.accessEx = accessEx;
    }

    public Integer getRefreshEx() {
        return refreshEx;
    }

    public void setRefreshEx(Integer refreshEx) {
        this.refreshEx = refreshEx;
    }

    public String getAccessSalt() {
        return accessSalt;
    }

    public void setAccessSalt(String accessSalt) {
        this.accessSalt = accessSalt;
    }

    public String getRefreshSalt() {
        return refreshSalt;
    }

    public void setRefreshSalt(String refreshSalt) {
        this.refreshSalt = refreshSalt;
    }
}
